<#include "fileHeaderTemplate.ftl">
package ${config.packageName}${config.controllerSubPackage};

import javax.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
<#if config.hasCommonController>
import ${config.commonControllerPath};
</#if>
import ${config.packageName}${config.entitySubPackage}.${table.className};

<#include "classHeaderTemplate.ftl">
@Controller
@RequestMapping("${table.className?uncap_first}")
public class ${table.className}Controller<#if config.hasCommonController> extends ${config.commonControllerName}<${table.className}></#if>
{
    @Resource
    private ${table.className}Service ${table.className?uncap_first}Service;
}